package com.ryandj.exMessage;

public class OOTDException extends BusinessException {
    public OOTDException(int code, String message) {
        super(code, message);
    }

    public OOTDException(int code, String message, Object... args){
        super(code,String.format(message,args));
    }

    public OOTDException(int code, String message, boolean toJsonMessage) {
        super(code, message, toJsonMessage);
        if (toJsonMessage) {
            this.toJsonMessage();
        }

    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof OOTDException)) {
            return false;
        } else {
            OOTDException other = (OOTDException)o;
            return other.canEqual(this);
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof OOTDException;
    }

    public int hashCode() {
        int result = 1;
        return result;
    }
}
